﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="PurchaseGoodsSelect.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Procurement.PurchaseGoodsSelect" %>

<%@ Register Src="../../Controls/ucIsBasicRemedy.ascx" TagName="ucIsBasicRemedy" TagPrefix="uc1" %>

<%@ Register Src="../../Controls/ucSource.ascx" TagName="ucSource" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">采购目录选择</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">产品编号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsId" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>

                        </tr>
                        <tr>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>

                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">&nbsp;材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">&nbsp;最小计量单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">&nbsp;生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <%--<td align="right">
                                包装单位：
                            </td>
                            <td align="left">
                            <asp:TextBox ID="txtPackUnit" runat="server"></asp:TextBox>
                            </td>--%>
                            <td align="right">产品类别：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtQualityLevel" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn"
                        ToolTip="点击查询符合条件的数据" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="ProcureCatalogID,GoodsID" EmptyDataText="暂无可选的采购目录！" OnRowDataBound="gvwProduceCatalog_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品编号">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.GetGoodsUrl(Eval("Goodsid")) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Goodsid" HeaderText="产品编号" Visible="false" />
            <asp:BoundField DataField="sortname" HeaderText="目录名称" ReadOnly="true" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Count" HeaderText="最小包装数量" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位">
                <%--<HeaderStyle Width="30px" />--%>
            </asp:BoundField>
            <asp:BoundField DataField="CompanyName_SC_TB" HeaderText="生产企业(代理)" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <%--<asp:BoundField DataField="SortName" HeaderText="产品分类" Visible="false">
                <HeaderStyle Width="55px" />
            </asp:BoundField>--%>
            <asp:TemplateField HeaderText="采购限价">
                <ItemTemplate>
                    <asp:Label ID="lblProcurePrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("ProcurePrice")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" Visible="False" />--%>
            <asp:BoundField DataField="ProjectName" HeaderText="项目" Visible="False" />
            <asp:BoundField Visible="false" DataField="AddTime" HeaderText="添加时间" DataFormatString="{0:yyyy-MM-dd}" />
            <%-- <asp:TemplateField HeaderText="产品属性">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.FormatDrugSource( Eval("SortSource")) %>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
               <asp:TemplateField HeaderText="是否基药">
                <ItemTemplate>
                    <%# HZ.DrugTrade.Web.Function.FormatDrugBasicRemedy(Eval("IsBasicRemedy"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="checkbox1" id="checkbox1" value='<%#Eval("ProcureCatalogID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll');" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField>--%>
            <asp:TemplateField>
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this, 'ctl00_ContentPlaceHolder1_gvwProduceCatalog', 'addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="checkbox1" onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwProduceCatalog','addTable_chkAll');" runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="25px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip" style="display: none;">
        <ul>
            <li>提示:<span></span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAdd" runat="server" Text="确定选择" CssClass="btn" OperateType="入围"
            ToolTip="将所选产品加入自身采购目录中" OnClick="btnAdd_Click" OnClientClick="return checkSelectedItems('ctl00_ContentPlaceHolder1_gvwProduceCatalog','请至少选定一个目录！');" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <hz:HzButton ID="btnExport" runat="server" Text="导出Excel" CssClass="btn" ToolTip="导出Excel"
                OnClick="btnExport_Click" />
    </div>
</asp:Content>
